﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Derbster.Domain;

using Microsoft.Practices.Unity;

namespace Derbster.Mock
{
    public static class UnityConfiguration
    {
        public static IUnityContainer ConfigureUnityContainer(IUnityContainer unityContainer)
        {
            if (unityContainer == null)
                unityContainer = new UnityContainer();

            unityContainer.RegisterType<ILeagueRepository, MockLeagueRepository>();
            unityContainer.RegisterType<IMatchRepository, MockMatchRepository>();
            unityContainer.RegisterType<IOfficialRepository, MockOfficialRepository>();
            unityContainer.RegisterType<ISkaterRepository, MockSkaterRepository>();
            unityContainer.RegisterType<ITeamRepository, MockTeamRepository>();

            return unityContainer;
        }
    }
}
